#include <iostream>
using namespace std;
int main()
{
    __int64 n,Ball_Left,P_Score,O_Score;
    cin>>n;
    while (n--)
    {
        cin>>Ball_Left>>P_Score>>O_Score;
        if (Ball_Left>6)P_Score+=(Ball_Left-6)*8+27;
        else P_Score+=(15-Ball_Left)*Ball_Left/2;
        if (P_Score>=O_Score)cout<<"Yes"<<endl;
        else cout<<"No"<<endl;
    }
    return 0;
}
